package com.ssy.lingxi.member.merchant.repository;

import com.ssy.lingxi.member.merchant.entity.MemberUserAuthDO;
import com.ssy.lingxi.member.merchant.entity.MemberUserDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户权限Jpa仓库类
 * @author 万宁
 * @version 2.0.0
 * @date 2021-05-13
 */
@Repository
public interface MemberUserAuthRepository extends JpaRepository<MemberUserAuthDO, Long>, JpaSpecificationExecutor<MemberUserAuthDO> {

    List<MemberUserAuthDO> findByUserIn(List<MemberUserDO> users);
}
